import React from 'react';
import ReactDOM from 'react-dom';
import '@/index.css';
import App from '@/App';
import registerServiceWorker from '@/registerServiceWorker';
import { Provider } from 'react-redux'
import configStore from '@/store/configStore';

const store = configStore();
ReactDOM.render(
<Provider store={store}>
  <App />
</Provider>
, document.getElementById('root'));
registerServiceWorker();
if (module.hot) {
  module.hot.accept('@/App', () => {
    ReactDOM.render(
      <Provider store={store}>
        <App />
      </Provider>,
      document.getElementById('root'))
  })
}
